
export default {
  name: '套餐名称',
  valid: '状态',
  creditP10901: '格口积分配置-大箱',
  creditP10902: '格口积分配置-中箱',
  creditP10903: '格口积分配置-小箱',
  creditP10904: '格口积分配置-超小箱',
  creditP10905: '格口积分配置-大箱(宽)',
  creditP10906: '格口积分配置-中箱(宽)',
  creditP10907: '格口积分配置-小箱(宽)',
  creditP10908: '格口积分配置-超小箱(宽)',
  creditP10909: '格口积分配置-文件箱',
  creditP10910: '格口积分配置-文件箱(宽)',
  creditP10911: '格口积分配置-超大箱',
  creditP10912: '格口积分配置-超大箱(宽)',
  depositP10901: '柜体寄存费用-大箱',
  depositP10902: '柜体寄存费用-中箱',
  depositP10903: '柜体寄存费用-小箱',
  depositP10904: '柜体寄存费用-超小箱',
  depositP10905: '柜体寄存费用-大箱(宽)',
  depositP10906: '柜体寄存费用-中箱(宽)',
  depositP10907: '柜体寄存费用-小箱(宽)',
  depositP10908: '柜体寄存费用-超小箱(宽)',
  depositP10909: '柜体寄存费用-文件箱',
  depositP10910: '柜体寄存费用-文件箱(宽)',
  depositP10911: '柜体寄存费用-超大箱',
  depositP10912: '柜体寄存费用-超大箱(宽)',
  depositFreeHours: '柜体寄存费用-免费时间',
  depositIntervalHours: '柜体寄存费用-间隔收费',
  depositMaxFee: '柜体寄存费用-最高上线金额',
  detentionP10901: '投递人取回超时配置-大箱',
  detentionP10902: '投递人取回超时配置-中箱',
  detentionP10903: '投递人取回超时配置-小箱',
  detentionP10904: '投递人取回超时配置-超小箱',
  detentionP10905: '投递人取回超时配置-大箱(宽)',
  detentionP10906: '投递人取回超时配置-中箱(宽)',
  detentionP10907: '投递人取回超时配置-小箱(宽)',
  detentionP10908: '投递人取回超时配置-超小箱(宽)',
  detentionP10909: '投递人取回超时配置-文件箱',
  detentionP10910: '投递人取回超时配置-文件箱(宽)',
  detentionP10911: '投递人取回超时配置-超大箱',
  detentionP10912: '投递人取回超时配置-超大箱(宽)',
  detentionNormalTime: '投递人取回超时配置-免费时间',
  detentionOvertime: '投递人取回超时配置-间隔收费',
  useP10901: '投递费用-大箱',
  useP10902: '投递费用-中箱',
  useP10903: '投递费用-小箱',
  useP10904: '投递费用-超小箱',
  useP10905: '投递费用-大箱(宽)',
  useP10906: '投递费用-中箱(宽)',
  useP10907: '投递费用-小箱(宽)',
  useP10908: '投递费用-超小箱(宽)',
  useP10909: '投递费用-文件箱',
  useP10910: '投递费用-文件箱(宽)',
  useP10911: '投递费用-超大箱',
  useP10912: '投递费用-超大箱(宽)',
  appPickupDiscount: 'APP取件折扣',
  cabPickupDiscount: '柜体取件折扣',
  scanPickupDiscount: '码枪取件折扣',
  innerPickupDiscount: '后台取件折扣',
  cabDeliveryDiscount: '柜体投递收费折扣',
  appDeliveryDiscount: 'APP投递收费折扣',
  cabRetrieveDiscount: '柜体取回收费折扣',
  appRetrieveDiscount: 'APP取回收费折扣',
  cabFreePayDiscount: '免密支付折扣',
  shelfCharge: '货架取件超时配置-收费价格',
  shelfNormalTime: '货架取件超时配置-免费时间',
  shelfTimeout: '货架取件超时配置-间隔收费',
  tempCharge: '地堆取件超时配置-收费价格',
  tempNormalTime: '地堆取件超时配置-免费时间',
  tempTimeout: '地堆取件超时配置-间隔收费',
  userUseP10901: '用户取件费用-大箱',
  userUseP10902: '用户取件费用-中箱',
  userUseP10903: '用户取件费用-小箱',
  userUseP10904: '用户取件费用-超小箱',
  userUseP10905: '用户取件费用-大箱(宽)',
  userUseP10906: '用户取件费用-中箱(宽)',
  userUseP10907: '用户取件费用-小箱(宽)',
  userUseP10908: '用户取件费用-超小箱(宽)',
  userUseP10909: '用户取件费用-文件箱',
  userUseP10910: '用户取件费用-文件箱(宽)',
  userUseP10911: '用户取件费用-超大箱',
  userUseP10912: '用户取件费用-超大箱(宽)',
  overtimeP10901: '用户取件超时配置-大箱',
  overtimeP10902: '用户取件超时配置-中箱',
  overtimeP10903: '用户取件超时配置-小箱',
  overtimeP10904: '用户取件超时配置-超小箱',
  overtimeP10905: '用户取件超时配置-大箱(宽)',
  overtimeP10906: '用户取件超时配置-中箱(宽)',
  overtimeP10907: '用户取件超时配置-小箱(宽)',
  overtimeP10908: '用户取件超时配置-超小箱(宽)',
  overtimeP10909: '用户取件超时配置-文件箱',
  overtimeP10910: '用户取件超时配置-文件箱(宽)',
  overtimeP10911: '用户取件超时配置-超大箱',
  overtimeP10912: '用户取件超时配置-超大箱(宽)',
  normalTime: '用户取件超时配置-免费时间',
  overtime: '用户取件超时配置-间隔收费',
};

/**
 * 转换为中文
 */
export const checkParams = (name: string, value: any) => {
  const booleanInfo = { // 布尔类型
    valid: { 0: '无效', 1: '有效' },
  };
  const keysArray = Object.keys(booleanInfo);
  return keysArray.indexOf(name) >= 0
    ? booleanInfo[name][value] : value;
};
